/**
 * 
 */
package cn.gov.msa.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import cn.gov.msa.dao.CommonOpinionMapper;
import cn.gov.msa.model.CommonOpinion;
import cn.gov.msa.pagehelper.CustomPageHelper;
import cn.gov.msa.service.CommonOpinionService;

/**   
* @Title: CommonOpinionServiceImpl.java 
* @Package cn.gov.msa.service.impl 
* @Description: TODO(用一句话描述该文件做什么) 
* @author 何宇江  
* @date 2018年10月22日 下午2:36:41 
*/
public class CommonOpinionServiceImpl implements CommonOpinionService {

	@Autowired
	CommonOpinionMapper commonOpinionMapper;
	
	@Override
	public List<CommonOpinion> selectCommonOpinion(int pageNum, int pageSize, CommonOpinion commonOpinion)
			throws Exception {

		CustomPageHelper.startPage(pageNum, pageSize); // 核心分页代码  
		List<CommonOpinion> commonOpinionList = commonOpinionMapper.selectData(commonOpinion);
		
		return commonOpinionList;
	}

}
